﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.Base
{

    //测试sss

    /// <summary>
    /// 审计字段
    /// </summary>
    public class BaseEntity : KeyEntity
    {
        /// <summary>
        /// 创建人
        /// </summary>
        [Description("创建人"), MaxLength(30)]
        public int? Creator { set; get; } = 518;

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public DateTime? CreateTime { set; get; } = DateTime.Now;

        /// <summary>
        /// 编辑人
        /// </summary>
        [Description("编辑人"), MaxLength(30)]
        public int? Editor { set; get; } = 518;

        /// <summary>
        /// 编辑时间
        /// </summary>
        [Description("编辑时间")]
        public DateTime? EditTime { set; get; } = DateTime.Now;

        /// <summary>
        /// 是否删除
        /// </summary>
        [Description("是否删除")]
        [DefaultValue(0)]
        public bool? IsDelete { set; get; } = false;

        /// <summary>
        /// 删除人
        /// </summary>
        [Description("删除人"), MaxLength(30)]
        public int? Deletor { set; get; } = 518;

        /// <summary>
        /// 删除时间
        /// </summary>
        [Description("删除时间")]
        public DateTime? DeleteTime { set; get; } = DateTime.Now;
    }
}
